﻿using System.ComponentModel.DataAnnotations;

namespace EFCoreBest.Domain
{
    public class Product : Entity
    {
        [Required]
        [StringLength(100)]
        public string Name { get; set; }

        [ConcurrencyCheck]
        [Required]
        public int Stock { get; set; }

        public decimal Price { get; set; }

        //[Timestamp]
        //public DateTime? UpdateAt { get; set; }
    }
}